using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Thaire.Investment.Domains.Transaction
{
   
    public class DepositInterest 
    {
        #region Properties
              // DEPOSIT_INTEREST_ID
        public virtual int DepositInterestID { set; get; }
      // DEPOSIT_HEADER_ID
        public virtual int? DepositHeaderID { set; get; }
      // INTEREST_APPLY_DATE
        public virtual DateTime? InterestApplyDate { set; get; }
      // INTEREST_RATE
        public virtual decimal? InterestRate { set; get; }
        //INTEREST_PAYMENT_DATE
        public virtual DateTime? InterestPaymentDate { get; set; }

        #endregion

        

        public override bool Equals(object obj)
        {
            if(obj == null)
                return false;
            if(obj.GetType() != typeof(DepositInterest) && !(obj is DepositInterest))
                return false;
            return ToString().Equals(obj.ToString());
        }

        public override int GetHashCode()
        {
            return ToString().GetHashCode();
        }

        public override string ToString()
        {
            return string.Format("{0}",DepositInterestID);
        }

    }


}